{# SPDX-License-Identifier: Apache-2.0 #}
{
    "short_name": "{{ orderer.id }}",
    "name": "{{ orderer.id }}",
    "api_url": "{{ ibp[orderer.id].protocol }}://{{ ibp[orderer.id].internal_hostname if (infrastructure.docker.use_internal_hostname | default(false)) else ibp[orderer.id].hostname }}:{{ ibp[orderer.id].port }}",
    {% if ibp[orderer.id].protocol == 'grpcs' %}
    "pem": "{{ lookup('file', ibp[orderer.id].pem) | b64encode }}",
    {% endif %}
    "type": "fabric-orderer",
    "msp_id": "{{ organization.msp.id }}",
    "container_name": "{{ orderer.docker.name }}",
    "wallet": "{{ organization.wallet | basename }}",
    "identity": "{{ organization.msp.admin.identity }}"
}